Simplify query when checking database connection
Simplify query when checking database connection

piotras/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,piotras/midgard-core,piotras/midgard-core,piotras/midgard-core