prep beta 8 release, backport sql_queries.php fix.
https://github.com/simpleinvoices/simpleinvoices/commit/7e3d825f141191b2ad3ff8af2835ee4896d417e7