Store tracking information in database