Date export now uses hooks instead of db_insert