db code for explorer