Add additional logging and extended timeout for database connections.