Add master table to database