UPDATED: Implemented the multiple where feature
UPDATED: Made the query builder compatible with the SQL functions