Fixed bug that would prevent creation of non-existing databases