Modified gem to work with local pg instance