try catch change
sql connector var renamed
error handing inserted to db