Fix bug preventing users from creating books introduced by previous commit, also patch to make application compatible with old data