Database marketing involves collecting customer data from internal and external sources to build a customer database. This data is then analyzed using techniques like lifetime value analysis and RFM analysis to develop customer profiles and models that predict future behaviors. Direct marketing programs then use targeted communications like direct mail, email, and telemarketing to execute personalized marketing campaigns to customers.