Remove dead code: FileMode
Extract Lib.StdOutputs
Extract Lib.AccessType
Extract Db to abstract Sophia and the Schema