Adds style fixes and tests a Heroku database fix

- instead of commenting out local database, put in conditional.