fix relationships between Author and book models