Ab-initio dynamics of Gas-phase and Aqueous-phase Hydrolysis of Adenosine Triphosphate