[basex-talk] Database access in a function