Resolving database connection problems.