Adding initial db abstraction