Switched db from sqllite to postgres