debugging 'data too long' SQL error