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)