Fix bug which crashed app the second time.

Change createSimplePointLayer() to getOrCreatePointLayer() to avoid
throwing exceptions. Earlier the application would work fine the first
time, but would throw the next time. This was because the ‘database’
folder was created the first time.