Work on TestDatabase and Element::loadFromDB

- TestDatabase now static
- Added TestDatabase::testQuery() - tests creating, inserting,
selecting, and dropping
- added DatabaseAPI::getQuery() - for use with INSERT statements
- Element::loadFromDB() now creates Element from a Row, creating
vector<Element> moved back into DatabaseAPI