set schema for primary key after restore database