Added saving of user into database