Added the DB abstraction.