moved db and ldap settings to config file. added configuration dialog.