r8996: support memory database in probe-database