chore(reset): add mongo connection and refactor rest-api