Added mysql and separated programs