AMD plugin for loading SQL