SQL and web.py