Move from sqlite to postgres.