switched db from sqlite to postgres