base class for example save and find data from database