Changed PHP framework to CakePHP instead of codeigniter. A better framework for what we need to do in the given time.