update dynamic system and stats saved in a MySQL Database