console log db query results