rewritten book management db methods