fixed parameters error when starting with an empty database