sambaundoguididx: Add flags=ldb.FLG_DONT_CREATE_DB and port to Python3