add method to close db interface