fix(sql): not null constraints for the contribution table (closes #171)