Create table and class loans

More code in bdb to track lending of books.  Now there's three tables!  I've also fleshed out a loan class, which may change.  I'm debating whether to have the loan class store its associated person and book objects as their object representations (at least in the class, definitely not in the database) or just as the barcode/unique id of them.

Also fix a few bugs in person