parameterize db name and schema