updated _make_params in db.py