Built-In SQL

I’m trying to store logs with the built-in SQL and I was wondering if anyone had any starter links for the SQL side itself & the glua side. The wiki is semi helpful but doesn’t really have a beginner ‘tutorial’.