setting up db for register