Add book migration database for 3.12.

(cherry picked from commit 45afa54dcffdc028256b3c2deaa1619f046a9613)