If you want to sync RazorCart products with your ERP or any external database nightly (or on any interval) you would use the rest API
http://helpdesk.smith-consulting.com/...-endpoints.aspx
Specifically, the following functions:
CreateProduct
UpdateProduct
DeleteProduct