MySQL Update

Improved MySQL methods.