edited the dbfunctions file