Insecure SQL Privileges

It seems that you may use a different version than the original InvoicePlane. Because there is no such statement in the codebase: https://github.com/InvoicePlane/InvoicePlane/search?utf8=✓&q=GRANT

Could you please give use more information about from where you got InvoicePlane.