Changed an id field to INTEGER since its being set via an FK