Modified dB schema to require unique terms. Added delete function & rudimentary json dumps.