move dbQuery into a util class. Allow multiple ids in queries - will enable comparison of individual records