Updates books to not use raw sql