Huge changes to db def
Erroneous use of or in except block
Inappropriate use of or in catching multiple excs
pep8
create_db from class to func
pep8 changes
Modified for latest changes in db.py retvals