Add FK constraints to db tables