added database support for heroku's mysql DB.