Fix persist method names
Add class and interface to perform the basic interaction with dbs