implement support for opening a database