after you create the db connection db=SQLDB(..) you need to write session.connect(request,response,db=db). can we please move this discussion on the web2py google group?
Though ASk YC are my favorite type of post, this is far too specific type of question to ask in YC forums. :)