Creates database