Removed global declaration - it was a throwback to an old version of the code
Added db file
Removed constants.py
A rudimentary working program.