changed sql structure of 11