You need also the libraries (.so files) for bluetooth-boost-sqlite...
So, all the sudo apt-get install are required.
The rest you can copy (no need to re-compile)
To avoid this I made an image of the complete SD card and a backup of the .db file on a daily basis

Complete image is only once when installation is complete. It will have the db included but that one will be very old when you need it.
Indeed, when the db gets corrupted, you'll have a recent version available.

ah ok, you meant backing up when preperation of sd and sbf is finished, misunderstood, thx sbf!

so apparently nothing's corrupted, though I have no clue what's wrong. So I have found my db in question, so I still have the data intact. Now I only need to rebuild the sd and then I have all up to date data again (apart from 1 or 2 days), but I think sbfspot
will redownload what's missing, right ?