Initial setup of db schema and class definitions