Absolutely agree with mastering SQL.
Out of all of the languages I have learned over the years, only one has stayed important in every job and mostly static - SQL
There are many languages and libraries, but at this moment in time, all of them have to talk to a database at some stage, and in order to do that all of them convert the request to SQL.