fixed relationship in db