Now works to query the databases and will insert only when id attribute is legal.  No error messages yet.