use sqlx.NameMapper instead of strings.ToLower to map struct names to column names