Some small changes and added clear_sql to PDO