Moved nulldb_adapter core
Extracted classes into their own files