replaced db interface