Added database close on add annotation field command.