db interface