partial implementation of db interface