Primary keys on all tables master

This is done now!

@karlitschek @craigpg we have to prepare an explicit upgrade script for Oracle users to add the auto increment columns - an "alternative" could be to purge/truncate all trashbins (table and physical file storage)
UPDATE: migration script is only necessary for Oracle - sqlite, MySql and PostgreSQL can handle this - see the unit tests