Understanding how to build a customer database efficiently