fixed broken db references