Add check for parameter count
fix typos
fix param count for unique and exists