find a way to directly calculate a user's streak with a MySQL statement