Fix db:* maintenance tasks

Also fix missing 'use strict' declarations