changed connection string to apphb

added logging