add schema flag to determine if a database should be schema or schemaless