partially implemented addToDb in domain elements