set up rails structure, moved the sinatra app, set up routes and DB connection