Fixed minor bugs. Finished DB connection settins dialog functionality.