A few random improvements to the database layer
Merge pull request #4361 from cakephp/3.0-random-database-improvements

A few random improvements to the database layer