Implemented part of DAO layer