Exploring the Age-dependent Properties of M and L Dwarfs Using Gaia and SDSS