https://github.com/sgreene570/audiophiler/blob/master/audiophiler/__init__.py#L121 no for loop needed. We can just use sqlalchemy to do an in place query. Same thing here https://github.com/sgreene570/audiophiler/blob/master/audiophiler/__init__.py#L239