Now uses macros for logging which can be changed by the user instead of being built into the plugin, fixed insert sql so it properly adds “”,