Fixed a bug for project where a field needed to be boolean. Adjusted some foreign constraints.