add database single mode