swap sqlite to pg