qtdatabase for script language

now thread save
Thanks to: user mhe_fr from forum