Can now update database after pattern selected.
Added support for section headers