simplify appendKeyWhereClauses
inline addKeysToBindedValues and don't mutate the parameter we were passed