Added libraries and database configuration for Heroku compatibility