Converted parse connection to promise based responses
Refactoring