config database file and remove some lines of gemfile