Switching sqlite to pg