Started restructuring the MKDB_interface to better fit Rong's syggestions.