I've been pointed at this thread too: some people obviously think I need more work... ;)
As per the comments on https://forum.ansys.com/forums/topic/how-do-i-add-a-sqlite-header-in-my-udf-file/ the SQL bit will be more complicated. Using a text file with columns for x, y, z and then a file read routine will be significantly easier.