Updated schema with separate sha and phash tables