Learned about the 'global' reserve word in Python. No longer have to
keep passing 'db' around.