Config columns

fix #647 where problems occur when there are no config entries or when the seq_no column has not yet been added to the model.  also made resync more generic.