[db] Implements SVM-based database. Adjusts DB components/Makefile accordingly (adding DB::Close() for per thread call).