return 1 if cannot create database