fetch next invoice id on the fly, check for uniqueness
throw error at user when invoice id is already in use