Fixed some issues to make sure Plugin permissions are set correctly.

Added a new database field 'complete' that defaults to 0.

Only setting permissions where complete = 0.

Setting complete to 1 when a row has been processed.
Added a complete field that defaults to 0 and is set to 1 after processing.

Added created and modified fields.