Add support for multi db mode

Also add an option to output the odb command for debugging