Print out if SQL Exception (i.e. duplicate entries)