Update databasefunctions.py