made edition connection optional and separate queries for isbn and author