implemented most functions of the cli
implemented find_similar option for exact search and prefix search
changed flask app to use ahd