add device metadata to schema
add orgInfo and dbInfo functions to org and db