re-wrked reduncant db connex code
Added loader screen.