save registration to db