add database, rename index to app.rb