Refractored databse modify codes and commented out print statements.