Properly update MySQL Database for points