commit sensors immediately when creating
commit sensors immediately when creating

This is necessary since the python code explicitly allocates the
database ids and otherwise multiple new sensors will receive the same
id.

openmotics/gateway,openmotics/gateway