changing from sqlite to pg database