Added stuff to fetch user data from the database.