Fix testing db connection