Implemented fetch user from database