Took unnecessary things out of dbQuerey