Making DB write dependent on AWS call return status