Modify code igniter to work with PDO