fix location of the already-used database and tweak the initial learning step