issue 3 - simplify __iter__ on StateDatabase

@twobraids r?