update gems and switch to pg