Sets the parameters during a database scan: