smaller mysql and correcting piping