Changed database config to work with heroku (pg).

Also now ignoring "*.swp" (hidden buffer) files.