updating with Active Record,  Postgres support and config options to make it easy to deploy on heroku