fix for rake db tasks