update db, add test nearPoint in /test.html