when db inexists, create it