updated Database.py to be useful and begin to work as a framework