Upper bounds and moments of L-functions