added async queryDB functionality, not working correctly!