You could turn on the directive SQL(autocommit) so that it will perform a commit after each statement.
I prefer using an explicit connect statement in my program so that I can have more control over the connect and error handling. Also if you ever need to disconnect or use more than one connection you would have to do this explicitly. It is really personal preference though.