Save the element and properties in db