db actions

try to save data base information in json format
and read everything