Updated the functions in DBMS.h, still needs working