added new setup parameters
added a getSQL() parameter fro selecting tables