Add simple registration

Add simple registration. Also update the db handler.