began implementation of DAO pattern