Some good recommendations here. However, I believe the best resource available to learn more about Qatar’s history is definitely Qatar National Library located inside Education City. If you have a valid QID, you can get a membership and borrow books. Free to visit last time I checked.