added heroku support, fixed table bool