adds updating of op_slot in database in allocator

(allocating free op_slots working now - without notifications)

lots of small bug fixes/cleanups and my nerves