What are the advantages of using a database management system (DBMS) over using file-based datastorage?