registration added and database updated