Use db context manager with baked in timeout detection