Basic refactoring of DAO classes, added PHPDoc blocks.