Used the wrong name for looking up a table schema. Beside fixing the bug, also added a more appropriate error message. However, we should move to package specific exceptions and document them as well