add mnesia files.
add detached option.