added saving and obtaining routes

* added saving route by providing specified json
* added obtaining routes for particular user
* added fix for db to increment keys - needed for application to work