Borrowed the web.py database layer because I like it.