Koszul algebras and Gröbner bases of quadrics