making sure db is present