Added LocalPort and missing test for updating the DB and the firmware code