add a case for mysql data fetch