database construction