postgres: orrect correctly database changes
Merge branch 'pgsql' into develop