[AIRFLOW-4038] Restructure database queries on /home (#4872)
[AIRFLOW-4038] Restructure database queries on /home (#4872)

DinoCow/airflow,r39132/airflow,Fokko/incubator-airflow,apache/airflow,Acehaidrey/incubator-airflow,airbnb/airflow,mtagle/airflow,lyft/incubator-airflow,cfei18/incubator-airflow,wooga/airflow,spektom/incubator-airflow,dhuang/incubator-airflow,mtagle/airflow,cfei18/incubator-airflow,mrkm4ntr/incubator-airflow,DinoCow/airflow,r39132/airflow,danielvdende/incubator-airflow,apache/airflow,apache/incubator-airflow,sekikn/incubator-airflow,r39132/airflow,DinoCow/airflow,airbnb/airflow,spektom/incubator-airflow,mrkm4ntr/incubator-airflow,wileeam/airflow,sekikn/incubator-airflow,cfei18/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,bolkedebruin/airflow,airbnb/airflow,wileeam/airflow,dhuang/incubator-airflow,mtagle/airflow,Fokko/incubator-airflow,bolkedebruin/airflow,mtagle/airflow,dhuang/incubator-airflow,apache/incubator-airflow,danielvdende/incubator-airflow,lyft/incubator-airflow,dhuang/incubator-airflow,apache/airflow,bolkedebruin/airflow,Fokko/incubator-airflow,cfei18/incubator-airflow,airbnb/airflow,nathanielvarona/airflow,Acehaidrey/incubator-airflow,mrkm4ntr/incubator-airflow,apache/airflow,nathanielvarona/airflow,wooga/airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,apache/incubator-airflow,apache/airflow,Fokko/incubator-airflow,nathanielvarona/airflow,r39132/airflow,mrkm4ntr/incubator-airflow,mistercrunch/airflow,wooga/airflow,sekikn/incubator-airflow,Acehaidrey/incubator-airflow,apache/incubator-airflow,lyft/incubator-airflow,sekikn/incubator-airflow,bolkedebruin/airflow,mistercrunch/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,DinoCow/airflow,Acehaidrey/incubator-airflow,Acehaidrey/incubator-airflow,lyft/incubator-airflow,spektom/incubator-airflow,nathanielvarona/airflow,mistercrunch/airflow,nathanielvarona/airflow,wileeam/airflow,apache/airflow,cfei18/incubator-airflow,danielvdende/incubator-airflow,spektom/incubator-airflow,wooga/airflow,wileeam/airflow,mistercrunch/airflow,bolkedebruin/airflow