remember to free auth_data
better documentation
support db6 too, based on patch from Lars Wendler <wendler@fasihi.net>
check for db6/db.h
include db6/db.h