Fixed bugs with Entities not referencing each other in DB