fix compilation errors in DBMediator classes