fixed typo in sql command and allow regular expressions