Working Database Connections

*GUI finished
*seems to be thread safe

TODO: concept to update database handles in plugins