Extending production SQL