db test prepare