Implemented getting user from database