sql and edmx modifications