first version of program to read info from database (2012Congress)