Update AbstractSql.php

Modified to run prepareStatementForSqlObject Sql class, creating sql according to platform