Implementing DataAcessObject, an abstract class, to support dao