improved sql storage with exceptions
logger
index, di