Drop in replacement to support PDO rather than just Mysql