remove pg, add sqlite, serialize json columns