Use function to create schema manager