Added setKeyDb method, to be used in testing, i.e. with this method we can change from another class the default MASTERDB database.