Optimized MySQL dump library written in PHP