working legislators class with database, wrote test file