db schema explained