TestDatabase and moving DB methods to data structures

- Added TestDatabase, currently only tests connection functions
- DatabaseAPI now a static implementation
- connectToDatabase now uses private connection strings
- added isConnected(), queryDatabase(string)
- Added method to Element to fetch types from DB