fix bug for repl selected db