Rename fields for clarity : queries and direct_queries
Add tests to check ScriptLog logic
WOrking code, but biased with the INSERT INTO of the scriptlog
Working scriptlogs