Recalulate/Import Energy statistics from external database

Hi,

has anybody a script to import and recalculate data from an extra database. I have the values for my water counter in an extra database logged. It would be nice, to import those data to HA energy dashboard. I take everything available - and mod in to my needs.

I am use MySQL as database for recorder.

Regards,
Thomas