made db opening faster