db test method