Added salting to hash table and parameterized the sql queries