Init SQL Dialog, WARNING: It's has bugs.