Added option 'createIfPathInexistent' to recursively create a path to the given database if it doesn't exist.