use django's database framework instead of hard-coding ldapdb.connection