Remove unnecessary attributes from completed and deleted tasks
Give empty fields the value None
Clean up integer value handling