updated gem from sqlite to pg