Fixes to Book/Category constructors without id and Book/Category insert
methods to correctly account for both the case in which an id is
specified and when it isn't.