Fixed error in add annotation field command. A SQL exception is no
longer thrown when closeing the database.?