Updated status to andle mysql error