skip mysql statement if empty