video 31 putting in the query function to our class Database