base skeleton, set up database