Is this type of data insertion safe and can stop sql injection in Python? I am learning Database connection from MySQL Connector/Python Developer Guide.