added munge auto detector
use database to store munge