afinventory service sql update