added function to query Tweet200 table, added sql query function