Switch from sqlite to postgres