Cleaned up mysql script.