in your outcommented code --> your !this.getDB().transaction(function(tx) {" call returns a promise, but your queryAll function as no return value. you need to create a promise before, return it at the end of queryAll.
In your transaction you need to reject/resolve this promise.