Add script that generates SQL for daily updates