Most databases I’ve dealt with will happily outstrip Python for a good chunk of the common queries.
And write SQL directly for medium complexity queries.