Added all needed operators

More importantly, improved the SQL query generation