finished db schema