an abstract class to persist objects mainly to sqlite dbs