sqlite error handling

and graph beautification: graph showing temperature settemp with blur
region