Help with messaging on sqlite DB to dashboard chart

I couldn't get this to work. I believe the solution is in the prep function node past the sqlite node by reading this post Dynamic series identification from message, send data to Chart - #5 by Steve-Mcl

My issue is that this level of programming is past my capabilities.