Made collection generation more generic.
renamed methods.
Added tests for SqlResult methods.