Pass string by reference
Fix bug where switching services messes up local database
Bump version to 1.1.7