Begin split dbm module code to multiple files under core directory.