When you make no media server directory in the list via webUI, it reports "No data in table", while the actual value of media_dir in config file is set to /tmp/mnt in this case which means it's scanning the entire disc.
I guess, the cause of that is this code...