Fixed acl service, bugs

Fixed definition of tables in acl service.
Fixed all of the calls to [compileWhereClauseFromExpression] in the PDO
database class.