add database run check

check that the database that we think we should have used actually
created a log directory, which means it was installed. Not a
perfect check, but a starting point for double entry accounting
so that devstack changes don't break us.

Change-Id: Ib7302894bfeb1016b15eba9e82312a7a915604fa