fixed column name from_date, added UNIQUE constraint for surrogate_key