Big start should do most of the desired things fine.
Gets a list from database with history and then transforms it into a
list of booleans for each port and then mends them to the controller.
This will later go trough the command builder.
Small change in the case, to read from the database you now specify SID
and the amount of records.