reset sql counter every time user logged in