fixed db connection reusing