add User struct and store it in database