switch db from sqlite to pg