change mongoose to tinydb and remove useless files