[db] Fix build issues