implemented display for database query result