Database is for storing various data whereas Repository is for harvesting and preserving data for long term. Repository uses database and puts lots of layers on it to make it searchable and viewable. But is there any major differences between these two terms?