updated http handling + mongo operation execution