SQL & paint updated