Cleaned up code and removed cruft
Define openTestAsyncDB
Fixed db.query test for taskqueue