Change status only if message received matches physical ap in sql database