I want to create a (STM)mapping document for a flat file to load into database, how many types of logics to consider for dates and history and delete records after monthly load