added algorithm.py, managed views for add and classify, mangaed mysql instead of sqlite3