Update database config for Travis.
Fix some SQL quoting issues here and there.
Build matrix cleanup
Require activesupport to make sure alias_method_chain exists in every Ruby/ActiveRecord combination.