Implemented persist method of DAO classes and provided a temporary
class to test methods of DAO classes