You should not be editing the database directly. Web2py takes care of all of that for you. Your database structure is based on what you include in your models.py file. Web2py automatically creates and populates an "id" field so you do not put that in your model.
Have a look at the Overview: http://web2py.com/book/default/chapter/03#An-Image-Blog

