What are the basic components and functions of databases?