updated saimod security to work with pg