fixed broken db reference