Adjustments to open database and prepare statement

:metal: