Database and gemfile fixed