registration going to db