moved salt into right place, updated database usage
typo