save user to database
clean code