connect database to SPC software