adds init_schema()
needs unit test