new(db): big refactor to use mongodb instead of mysql