set up database basic view