db interface skeleton