don't delete changelog when deleting entry: causes priv problems, and is wrong anyway
fix minor bug
cosmetics
don't force prioriry to be unique (this allows to do save, then delete)
clean-up sql_save_person(): more fine-grained permissions in pi/basic.php, handle affiliations based on groups_id
deadlock-issue with innodb tables: transactions and table locking need to be reworked.