Adding 'pre queries' to weblog import