database functionality (was Re: [21.2] LDAP add and delete functions + interrupt fixes)