get books data from db