Upgrade active_record_tasks
Read db env from RAILS_ENV