You can send it particular URLs that do your desired DB read/write requests.
For more in depth testing, I've heard HttpUnit is good (http://httpunit.sourceforge.net/), though I don't have much experience with it.
ab -n 10000 -c 25 http://your.com/your.py
10000 hits, with 25 concurrent requests. You can keep cranking up -c n and see what happens. This is also useful for testing your network capability, e.g. simultaneous connections, from a fast remote network.
You can send it particular URLs that do your desired DB read/write requests.
For more in depth testing, I've heard HttpUnit is good (http://httpunit.sourceforge.net/), though I don't have much experience with it.