second version

now uses mysql instead of csv to store data