Switch sqlite to pg
Update database config for pg
Merge branch 'pgsql' into develop