Created setup-db function.