factor out the loop delay into a separate method
fix SqlAlchemy operational error (dup primary key in ServerBinding)