moved schema creation to handlers