not working in tmp dir
create db if not present