saving routes in a sqlite database for off line mode