It's not necessarily about storing photos or databases.
Why a database? Because in my experience trying to manage a high volume of individual data files is extremely difficult.
By manage I mean keep track of, update, backup, control access to and in general ensure the integrity of the data.