Fix binding parameters to a DB query.