sqlite adapter init rewrite, fixes many random fails in blackbox tests