Fixed move_spin usecase to work with postgres db