check database random row if not empty