added sql structure