Added support to convert regexp and like conditions in where clauses
Redid inheritance to fix prototype issuesw.