Fix mdl_ prefixes

The problem with copying SQL code from psql is that you sometimes
accidentally leave stuff like this in :/