change db from sqlite to pg