set the parameters when loading a database