Stat Upgrade Fixed and New DB

It now checks for the stat before setting it to Upgrade. Also New DB
created for defaults and adjusted installer scripts to input data.