Update simple_rdbms.py

Added the getLastCharacter() and hasLastChar() functions to be used by the visitProgram() method in the interpreter module.