Fixed db fill condition