Moved playerDao outside of loop