mysql site update code