Database test

-Continuation of fixes to databases
-Minor improvements to checkWellFormed: be sure to pull with corresponding pull request in RMG-Py (or this won't work)