Moving the potted SQL from Python strings to its own place