rework primary keys in db