FIX: the results parser wasn't working when no hiostory was present. This broke after the latest conversions to mysql started
NEW: modified the whole storage part to be able to store data into a mysql DB