set N for hash family
change database