adaptation of dashboard init for sql in scripts