For more on developing flexible hamstrings, check out this hamstring flexibility routine for beginners:
How do you keep your back flat when doing a seated forward fold?
This video shows you how to recognize when your back is hunched and also how what to do so that your neck is long, your chest open and your back float. It shows you how to tilt the pelvis forwards so that the ribcage moves closer to the thighs.
You may also find this page helpful.