class to manage crud operation
interface to db
refactor