captiveportal.inc: simplified plea table creation and plea_id generation