fixed pg related errors and saimod_sys_security table coloration