added alternate constructor
finished addBook method
generate button adds a tests entry to the db and then reads it, works as expected