Require something in the data field for the log
Create current time and current time gmt globals
user time globals
minor formatting fix
Saving to mysql logs works
Better escape queries
Fixed sql formatting
Added function column to log table
Logging seems to work