Support cancel on database creation

Support cancel on database creation