db test working