Implemented querying of the database
- select every book
- select books matching a single criterion
- fixes #1