Hardware inventory not updating database