Added -printconfig option to main program for debugging
Fixed invalid values in WHERE clauses during GetConfig