[fix] Add C++ includes
[dist] Upgrade sophia
[dist] Remove temp dbs before running tests