Fixed parsing SRDA query result (handled single quote character in fields); code cleanup.