Init SQL Dialog, WARNING: It has bugs.