refactor: move DAO implementation into its function package.
Merge pull request #507 from forumbyr/master

refactor: move DAO implementation into its function package.