Fixed DB issues.