Fixes database error when creating new fieltypes