Get not synced routes from DB

Implemented method to get all unsynced routes from DB.
Also added method to mark a route as synced.