Updating flat text database files in perl