Link database collection to Members & Orders

Is it possible to connect a collection to get information of Members & Orders? We’re planning to sell software, so it’s important for us to track how many licenses has bought each member, so we can build an activation system. Thank you!