Added serial fallback. Added dumpdb dev command. Fixed issue in preproc_detectimg. Added test for preproc_detectimg