Use objectId when writing to the DataBase