Use include and alias_method_chain instead of prepend

Attempt to fix: `super: no superclass method `log' for #<ActiveRecord::ConnectionAdapters::Mysql2Adapter:0x000000056c15d8>` issue.