index script

modified query to update DB with salt