Add backports and deprecation messages
[db] Fix build issues