Waypoints fix

Waypoints are loaded from database and changes are written back into the
database (add, move, remove).

Get next AUTO_INCREMENT of a database table added to /FrameWork/Database