Move DB config to models.rb