I wish that I was half as good as you think I am

Should hopefully fix the table error checks, though expecting something
won't go according to plan, lol
Also added two more SQL functions for the two new fields I created in
the Element table for table error checking