implement saving user to database with user management