rename LdapConnection to DatabaseWrapper and accept configuration as a dict