basic registration working w/db