Remove executable bit on .php files
Use boolean constants since entity column is bool
Use DQL instead of (mysql specific) sql
Revert "Remove executable bit on .php files"

This reverts commit 3667975abbefaae96408c246b86fea7b811c341a.
More 0/1 -> false/true changes
Revert unnecessary getResult()
Merge pull request #5 from GCth/master

Fix mysql-specific errors