Bug -- test for None not empty database -- fixed.
Fixed error message display conditions so one appears if there is ever an error.
Improved documentation for how to deploy on Heroku
removed .sql from the list of gitignores