add phpunit config
refactor storage and sqlitestorage
remove duplicate error
pass logger to storage
add mysql storage