refactoring of cityService... using Q promises
refactoring