If you are running an emonpi you could try
php /home/pi/emonpi/emoncmsdbupdate.php
This how the emonpi updates the database after updating emoncms
here’s the script content
https://github.com/openenergymonitor/emonpi/blob/master/emoncmsdbupdate.php