Sugar database query layer specification (MIT)