Fixed database connection for Heroku deployment