Python Write Data To Sql If Exists