latest changes, defined the database relationship