implemented new DB creation and optimized open DB handling.