start of database setup