made database heroku-compatible