Added PKs and FKs to db