Generic DAO implemented and tested