Add a interface to provide indirection in the db calls