added another function for dbQuery so its easier to read