Future<bool> upsert() async { var exception = await Database.upsert(tableName, key, map); return (exception == null); }