Reading number of iteration from DB.  Closes #150