switch db connection