Some commands in real time mode

Hi
I’ve got problem with some commneds like
register => (in sip.conf )

How can i make register from database??? Is there any solution to this problem (some command?)

And i havem multiple context in extension table - do i always have to add extra line to extension.conf (=> RealTime)???

Tomek