Added new database function

Also added some extra info messages, added check for uniqueness on
new column labels; changed enableEditItems to use selected row and
column indexes as arguments.