Remove deprecation warnings
Follow ConnectionHandler changes.
Follow ActiveRecord::Persistence changes.
Fix when connection adapters returns ActiveRecord::Result
Add before blocks