Fix issue with connecting to postgres on development

http://stackoverflow.com/a/9184109/223408