new data model and sqls. added days sober with auto reset