Correctly (hopefully) implemented the update, insert, and delete MySQL functions. (HAS NOT BEEN TESTED!)