pep8 indent
fixed multiple inserts in db_add_data
removed id from mail.py. I assume you create the table independently. Please change id to id SERIAL PRIMARY KEY and it'll magically increment