update getPositions() get data from db if user logged in