implement select and delete book