adding executing query function, can do experiments now