moved the syncServer() from setup to shutdown
fixed waypoints being handled from db