replaced sample data with database content query