Don't commit to the database if nothing was saved...