check sql params before store