managed to convert some queries from nomvc(PDO) to codeigniter for changelog model (still converting)