Add abstract db interface