use ENV variable DATABASE_URL to set up database config
add index.php for heroku