Databases efficiently store related, structured data, typically with well-defined formats. They allow for the effective insert, update and retrieval of information. File-based legacy systems, on the other hand, are more unstructured data storage devices. They are used for storing arbitrary or unrelated data. File-based systems are more for general storage, whereas databases can be used to carefully store and recall associated information.