store data in database
save correctly all sessions