A database is an organized collection of structured data stored electronically in a computer system. A database management system (DBMS) is a complex software system used to create and manage databases and properly maintain large and complex databases. A DBMS provides logical and physical views of the data and allows for different external views for different users. It also provides languages to define, manipulate and control access to the data.