SQL classes updated