database updated

included new tables temp_users and registered_users