Always use field.db_type over connection.db_type, in fact, remove that