Setup gemfile for database
fixed database connection in app.rb
changed lib folder to models