Added db interface