Set up database and table.