Made the ProfilePage work with the database