Replace direct call to squidguard binary by the call to the rebuild_database() function.