Logging Included and Database Connection added