add other part of all in one
unfinish
new version of GeofenceServer, much less database access.