Move lua_State to global
Replace data store layer to Lua
Update test