setting up models and database (not working yet)