More SQL INSERT fixing