adds operator model
removes old test
adds close to a db handler