db schema and models set up