Fixed DB Connection issues.