PromisedDB: throw error if defineSchema not provided