Points component: clean the database on update to 1.2.0

Adds unit tests.

Fixes #22