Feat/db

completely refactored server side to use SQLite!