fetching from the database works