Alternative way to open db