How to train, manually update and create a new database for the Bayesian Filter