Yes, it was a mistake, this line suppose to be removed but somehow forgot. Can you help to comment out last line:  this.db = database;