add a fix to common issues with postgresql and codeigniter after migration