open DB before usage