tune mysql and postgresql