Fixing database.rake tasks