Fixing bug that caused field length to be in the wrong place in sqlite