Better comments and fixed the env problem by using Rails.env, this fixes the rake db:test:prepare problem