Factoring out common functionality from database-specific implementation.
MysqlLayer object should handle as little of the PDO execution as possible; this belongs in the higher-level DatabaseLayer methods.
DatabaseLayer must implement Traversable methods to allow ActiveSet to extend Iterator, Countable and ArrayAccess.
Completing unit testing of MysqlLayer.