Add foobooks database code