sdb integration fix

The aim is to make the project compile and work with SDB.