Added database querying when connection is selected.
Merge branch 'dev' of https://github.com/Castronova/EMIT into dev