converted database from sqlite to postgresql and updated gem file