Add constraints only after backfilling existing data for postgres and hsqldb

[#84262408] https://www.pivotaltracker.com/story/show/84262408

Signed-off-by: Madhura Bhave <mbhave@pivotal.io>