convert more docs to lua
more database doc updates for lua