update gems, switch to pg