safe create db if not exists