Add in OpenDBWithDirectory

Add in OpenDBWithDirectory