create db/lock if not exists