queryDB now returns a 2d array