- fixed some bugs in the db, map_routes and tracking