Create parsedbwrite.py

Works with pre-defined database 'database'