Subsets ground work
Use db context manager with baked in timeout detection