fixing RAILS_DB bug