Separated code to a new class

Created the class SqlExpressionCompiler, and the PDO database class references it.