changed db creation to reset