v0.1 working wtoDatabase.py