Convert stuff to use MySqlCommand instead of legacydatabase.update
remove legacydatabase insert stuff