Isd2/DB: I_scriptdev2 fixes and SQl Stuff

Signed-off-by: https://github.com/Infinity-420 <iceis2@hotmail.com>