Added various anti duplicate method.
Updated database