Added Db file alloc check queries