Changes to memory options, causes error
Null out ID pointer before storing in database.
This way it will not be double-freed when retrieved from the database
Fix PointSource bug