databases are programs that either use disk or memory to do 2 core things
record(store) data
query(retrieve) data
they are servers that are long lived and interact with the rest of the application through network calls, with protocols on top of TCP or even HTTP
some databases only keep records in memory, and the users of such databases are aware of the fact that those records may be lost forever if the machine or process dies
databases need persistence of those records, and cannot use memory
means that you have to write the data to disk
anything written to disk will remain through power loss or network partitions
this is used to keep permanent records
since machines die often in a large scale system
special disk partitions or volumes are used by the database processes
and those volumes can get recovered even if the machine were to go down permanently