Support for Rails 3.2 profiling

ActiveRecord::Tasks::DatabaseTasks and Application#initialized? doesn't
exits in Rails 3.2 applications