Improved doRequest tests and now checking for this.db to be defined during initialization