structural changes

- php mysql working
- restructured quotegen.php dependencies