rearranged db.py and qcon.py into accounts.py and data.py