Created read function for books controller