Add has to db interface