bash -> mysql performance