Update DBInterface.py

Some fixes