Changed the SQL update timer so that it avoid concurent modification.