connect to db using JScript