removed functions from functions.py and added them to databaseInterface.py