Fix : None values are not written as Null to db