adding db_release_unused_handles after each db statement in the security procs. The server would sometimes hang while in the sec_handler proc, supposedly because db handles were not being released and threads were held up waiting for them. Thanks Lars for tracking this down.