Simple book library in PHP