update hash2mysql to allow dynamic table insert and update