added DataStateManager and changed code of SqLiteDataProvider