core: ask database function now specifies db path