cursor_to_records wrapper for execute query using boss_db