Fixed a few bad references entries in db models